package bean;

import java.math.BigDecimal;

import data.bean.DataBean;
import data.bean.DatabaseEntity;
import data.bean.DatabaseField;

@DatabaseEntity(tableName="Component")
public class Component extends DataBean {

	static {
		REGISTER(Component.class);
	}

	@DatabaseField(name="id", type=Long.class, autoGenerate=true, primaryKey=true)
	private Long id;

	@DatabaseField(name="name", type=String.class)
	private String name;

	@DatabaseField(name="quantity", type=Long.class)
	private Long quantity;

	@DatabaseField(name="price", type=BigDecimal.class)
	private BigDecimal price;

	@DatabaseField(name="description", type=String.class)
	private String description;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getQuantity() {
		return quantity;
	}

	public void setQuantity(Long quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
